<?php
class Script extends Tag {
	protected $type;
	protected $charset;
	protected $defer;
	protected $src;

	public function __construct() {
		parent::__construct("script");
		$this->type="";
		$this->charset="";
		$this->defer="";
		$this->src="";
		$this->attributeNames=array_merge($this->attributeNames,array('type','charset','defer','src'));
		$this->attributeValues=array_merge($this->attributeValues,array('','','',''));
	}

	public function setType($_type) {
		$this->type=(string)$_type;
		$this->setAttribute('type',$_type);
	}
	public function getType() {
		return $this->type;
	}
	public function setCharset($_charset) {
		$this->charset=(string)$_charset;
		$this->setAttribute('charset',$_charset);
	}
	public function getCharset() {
		return $this->charset;
	}
	public function setDefer($_defer) {
		$this->defer=(string)$_defer;
		$this->setAttribute('defer',$_defer);
	}
	public function getDefer() {
		return $this->defer;
	}
	public function setSrc($_src) {
		$this->src=(string)$_src;
		$this->setAttribute('src',$_src);
	}
	public function getSrc() {
		return $this->src;
	}

}
?>